package biz.impl;

import java.util.List;
import java.util.Map;

import dao.ZhiWeiDao;

import entity.Dept;
import entity.Zhiweibiao;
import biz.ZhiWeiBiz;

public class ZhiWeiBizImpl implements ZhiWeiBiz {
	private ZhiWeiDao zhiWeiDao;
	public void addZhiweibiao(Zhiweibiao zhiweibiao) {
		zhiWeiDao.addZhiweibiao(zhiweibiao);
	}

	public void updateZhiweibiao(Zhiweibiao zhiweibiao) {
		zhiWeiDao.updateZhiweibiao(zhiweibiao);
	}

	public void deleteZhiweibiao(Long id) {
		zhiWeiDao.deleteZhiweibiao(id);
	}

	public Zhiweibiao findOneZhiweibiaoById(Long id) {
		return zhiWeiDao.findOneZhiweibiaoById(id);
	}

	public List<Zhiweibiao> findAllZhiweibiao() {
		return zhiWeiDao.findAllZhiweibiao();
	}

	public List<Zhiweibiao> findZhiweibiaoByCondition(Map map, Integer pageNo,
			Integer size) {
		return zhiWeiDao.findZhiweibiaoByCondition(map, pageNo, size);
	}

	public ZhiWeiDao getZhiWeiDao() {
		return zhiWeiDao;
	}

	public void setZhiWeiDao(ZhiWeiDao zhiWeiDao) {
		this.zhiWeiDao = zhiWeiDao;
	}

	public Dept findDeptById(Long id) {
		return zhiWeiDao.findDeptById(id);
	}

	public List<Dept> findAllDept() {
		return zhiWeiDao.findAllDept();
	}
	
}
